home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / 1994.12.gz / 1994.12 / 000039_karron@mcard27.med.nyu.edu_Wed Dec 7 09:29:50 1994.msg < prev    next >
Internet Message Format  |  1994-12-30  |  3KB

  1. Received: from mcard27.med.nyu.edu by cs.umb.edu with SMTP id AA17604
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Wed, 7 Dec 1994 14:30:15 -0500
  3. Received: by mcard27.med.nyu.edu (921113.SGI.UNSUPPORTED_PROTOTYPE/921111.SGI.ANON_FTP.DBK)
  4.     for tex-k@cs.umb.edu id AA08056; Wed, 7 Dec 94 14:29:51 -0500
  5. From: karron@mcard27.med.nyu.edu (Dan Karron karron@nyu.edu)
  6. Message-Id: <9412071929.AA08056@mcard27.med.nyu.edu>
  7. Subject: YY_USE_CONST kausing k-trouble (krist!:)
  8. To: tex-k@cs.umb.edu
  9. Date: Wed, 7 Dec 1994 14:29:50 -0500 (EST)
  10. X-Mailer: ELM [version 2.4 PL23]
  11. Mime-Version: 1.0
  12. Content-Type: text/plain; charset=US-ASCII
  13. Content-Transfer-Encoding: 7bit
  14. Content-Length: 2000      
  15.  
  16. Dear Karl-Hacker;
  17.  
  18. Oh YY if you don't define YY_USE_CONST do UU du thusly and in two files...
  19.  
  20. lex.yy.c-dist and lex.yy.c
  21.  
  22. #ifndef YY_USE_CONST
  23. #ifndef const
  24. #define const
  25. #endif
  26. #endif
  27.  
  28.  
  29. This causes
  30. accom: Error: /usr/include/stdlib.h, line 102: Qualifier mismatch in prototype,   pointer to const  char  versus   pointer to char
  31.        extern int       system(  char *);
  32.        ---------------------------------^
  33. accom: Error: /usr/include/stdlib.h, line 102: inconsistent prototypes for function system
  34.        extern int       system(  char *);
  35.        ---------------------------------^
  36. accom: Error: /usr/include/errno.h, line 47: Qualifier mismatch in prototype,   pointer to const  char  versus   pointer to char
  37.        extern void      perror(  char *);        
  38.        ---------------------------------^
  39. accom: Error: /usr/include/errno.h, line 47: inconsistent prototypes for function perror
  40.        extern void      perror(  char *);        
  41.        ---------------------------------^
  42. *** Error code 1
  43.  
  44. I went Krazy trying to find where the header files Konflicted...
  45. The problem is in the define editing out the const in some include
  46. files and not in others... afterall,,, why would the system include
  47. konflict with an application include file (kpathfiles) in such a
  48. funny way... cause... yikes...
  49.  
  50. my Konfidance is krumbleing... or I am just kooky...
  51.  
  52. Hi Karl...
  53.  
  54. Solution:
  55.  
  56. #if 0
  57. #ifndef YY_USE_CONST
  58. #ifndef const
  59. #define const 
  60. #endif
  61. #endif
  62. #endif
  63.  
  64. something is defining const somewhere...
  65.  
  66. what is the purpose of the two lex.yy.c sources... where is the -dist
  67. file edited into the .c file ?
  68.  
  69. Kripes... krumble krumble krumble...
  70.  
  71. I think I can debug a rainy day...
  72.  
  73. -- 
  74. | karron@nyu.edu (e-mail alias)Dan Karron, Ph.D.,Research Assistant Professor|
  75. | Phone: 212 263 5210 Fax: 212 263 7190  New York University Medical Center  |
  76. | 560 First Avenue                       Digital Pager  <1>  212 397 9330    |
  77. | New York, New York 10016               <2> 10896   <3> <your-number-here>  |
  78.